Skip to content

Add LBRY UTXO support and local address/transaction tests - #62

Open
tzarebczan wants to merge 2 commits into
renproject:masterfrom
tzarebczan:lbry-support
Open

tzarebczan wants to merge 2 commits into
renproject:masterfrom
tzarebczan:lbry-support

Conversation

@tzarebczan

@tzarebczan tzarebczan commented Nov 11, 2020 •

Copy link
Copy Markdown

Adds LBRY as an LBC UTXO chain, with chain-specific address/network parameters, Bitcoin-compatible transaction and fee-estimator adapters, and local-node infrastructure. The branch is updated to current master; existing upstream chain mappings and the removal of the obsolete Solana Compose service are preserved.

Local regression tests cover mainnet/testnet/regtest legacy address round trips, malformed/checksum/wrong-network rejection, LBC/LBRY mappings, exact transaction outputs and fee accounting, and P2PKH script validation. Changing a signed output amount invalidates the signature. The existing root integration case is available through the explicit -lbc flag.

Validation on Go 1.27.1:

  • go test -mod=readonly -race ./chain/lbry -run '^TestLBRY(Address|Tx)' -count=1 — passed (six top-level tests, including twelve address subcases).
  • go build -mod=readonly . ./chain/lbry ./chain/bitcoin ./api/address ./api/utxo — passed.
  • go vet -mod=readonly ./chain/lbry ./chain/bitcoin ./api/address ./api/utxo and git diff --check — passed.

These tests use public synthetic fixtures and no RPC calls. The existing funded-node Ginkgo tests, full multi-chain integration suite, and live LBRY transaction submission were not run. Local script validation does not establish acceptance by a LBRY node. No protocol parameters were changed during this update.

@tzarebczan
tzarebczan force-pushed the lbry-support branch 3 times, most recently from b58264f to ba6a161 Compare January 20, 2021 06:29
Been chatting with the Ren team on Telegram and we are very eager to add support for renLBC!

We're a fork of Bitcoin Core, so integration should be fairly straightforward.

Note: Rebased and made updates to LBRY params on 1/20/2021. Happy New Year Ren Team, looking forward to working together.
@tzarebczan

Copy link
Copy Markdown
Author

Recently updated with a few fixes + rebase, all tests passing now:

image

@zensh

zensh commented Jun 19, 2021

Copy link
Copy Markdown

@loongy @jazg Please review it

@tzarebczan tzarebczan changed the title Add LBRY Support Add LBRY UTXO support and local address/transaction tests Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants